﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Acms.Bll;
using Acms.AcmsControls;

public partial class NewTemplates_HomePage_Default : Acms.AcmsControls.TemplatePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<Post> children = AcmsContext.CurrentPost.GetChildren(AcmsContext.SiteVersion);
        if (children != null && children.Count > 0)
        {
            AcmsContext = new Acms.AcmsControls.AcmsContext(children[0], null);
            Server.Transfer(AcmsContext.TemplateUrl);
        }

    }
}
